/** @type {import ('@vue/cli-service').ServicePlugin  } */
const rimraf = require('rimraf')
module.exports = (api, options) => {
   api.registerCommand('clean', (args, rawArgs) => {
       console.log('clean')
        rimraf('./dist', err => {
            if (err) return console.log('fail~')
            console.log('success~')
        })
   })
}